import http from '../utils/http/http.js'

const getHomeworks = (data) => {
    return http.get("/getHomeworks",data);
};

const updateHomework = (data) => {
  return http.post("/updateHomework",data);
};

const addHomework = (data) => {
  return http.post("/addHomework",data);
};

const getHomework= (data) => {
  return http.get("/getHomework",data);
};

const delHomework= (data) => {
  return http.post("/delHomework",data);
};

const getHomeworkFilesById = (data) => {
  return http.get("/getHomeworkFilesById",data);
};

const delHomeworkFile = (data) => {
  return http.post("/delHomeworkFile",data);
};



export default {
  getHomeworks,updateHomework,addHomework,getHomework,delHomework,getHomeworkFilesById,delHomeworkFile
}